﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IDAL;
using DAL;
using Models;

namespace BLL
{
    public class IndexPicInfoLogic
    {
        public static IIndexPicInfo indexpicinfo = new IndexPicInfoDAL();

        public static List<IndexPicInfo> GetAllIndexPicInfo()
        {
            List<IndexPicInfo> list = indexpicinfo.GetAllIndexPicInfo();
            return list;
        }
        public static int InsertIndexPicInfo(IndexPicInfo pic)
        {
            return indexpicinfo.InsertIndexPicInfo(pic);
        }

        public static int DeleteIndexPicInfo(IndexPicInfo pic)
        {
            return indexpicinfo.DeleteIndexPicInfo(pic);
        }
        public static int UpdateIndexPicInfo(IndexPicInfo pic)
        {
            return indexpicinfo.UpdateIndexPicInfo(pic);
        }
        public static IndexPicInfo GetIndexPicInfoFromUrl(string PicUrl)
        {
            return indexpicinfo.GetIndexPicInfoFromUrl(PicUrl);
        }
    }
}
